//common
@mixin placeholder($color: $input-placeholder-color) {
    // Firefox
    &::-moz-placeholder {
        color: $color;
        opacity: 1; // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526
    }
    // Internet Explorer 10+
    &:-ms-input-placeholder {
        color: $color;
    }
    // Safari and Chrome
    &::-webkit-input-placeholder {
        color: $color;
    }
}

// for select and input like component's arrow
@mixin inner-arrow() {
    position: absolute;
    top: 50%;
    right: 8px;
    line-height: 1;
    margin-top: -7px;
    font-size: $font-size-base;
    color: $arrow-color;
    transition: all $transition-time $ease-in-out;
}

@mixin verify-tip-inner() {
    background-color: $error-color;
    border-radius: 4px;
    color: #fff;
    max-width: 200px;
    padding: 0px 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

@mixin verify-tip-arrow() {
    border-color: transparent;
    border-style: solid;
    height: 0;
    position: absolute;
    width: 0;
}
@mixin verify-tip() {
    display: block;
    font-family: $font-family;
    font-size: $font-size-small;
    font-style: normal;
    font-weight: 400;
    letter-spacing: normal;
    opacity: 100;
    position: absolute;
    text-align: start;
    text-decoration: none;
    text-shadow: none;
    text-transform: none;
    white-space: nowrap;
    word-break: nowrap;
    word-spacing: normal;
    word-wrap: nowrap;
    line-height: $input-height-small;
    z-index: 9;
    &.verify-bottom{
        margin-top: 2px;
        padding: 5px 0; 
    }
    > .verify-tip-inner{
        @include verify-tip-inner()
    }
    > .verify-tip-arrow{
        @include verify-tip-arrow()
    }
    &.verify-bottom > .verify-tip-arrow  {
        border-bottom-color: $error-color;
        border-width: 0 5px 5px;
        left: 50%;
        margin-left: -5px;
        top: 0;
    }
    &.bottom > .verify-tip-inner {
        background-color: $error-color;
        border-radius: 4px;
        color: #fff;
        max-width: 200px;
        padding: 0px 8px;
        text-align: center;
        margin-top: -1px;
    }
}
.verify-tip{
    @include verify-tip() 
}
